<template>
	<div class="audit-wrapper">
		<div class="head">
			<span class="title">
				返佣审核
			</span>
			<template v-if="allowAudit">
				<div class="right-btn">
					<el-button plain @click="goBack">
						{{ $t('common.cancel') }}
					</el-button>

					<el-button
						v-if="hasPermission('407065')"
						type="success"
						:disabled="loading"
						@click="openAuditDialog(1)"
					>
						{{
							activeName === '1'
								? $t('funds.fund_audit.audit_success_1')
								: $t('funds.fund_audit.audit_success_2')
						}}
					</el-button>
					<el-button
						v-if="hasPermission('407065')"
						type="danger"
						:disabled="loading"
						@click="openAuditDialog(2)"
					>
						{{
							activeName === '1'
								? $t('funds.fund_audit.audit_fail_1')
								: $t('funds.fund_audit.audit_fail_2')
						}}
					</el-button>
				</div>
			</template>
			<div v-else class="right-btn">
				<el-button plain @click="goBack">
					{{ $t('common.back') }}
				</el-button>
			</div>
		</div>
		<div class="audit-content detailBoxStyle flex-row-container">
			<div class="tree-box mr15">
				<CommonProxyTree
					ref="proxyTree"
					:selectedData.sync="selectedData"
					:detailData="detailData"
					:createdAtEnd="proxyCreatedAtEnd"
				/>
			</div>
			<div class="treeRight">
				<div v-if="selectedData.type === 1">
					<ProxyCommission
						:isAudit="true"
						:detailData="detailData"
						:proxyRebateDetail="proxyRebateDetail"
						:proxyAccountInfo="proxyAccountInfo"
						:tableCommissionDataTop="tableCommissionDataTop"
						:tableCommissionDataBottom="tableCommissionDataBottom"
						:proxyRebateAuditInfo="proxyRebateAuditInfo"
					>
						<template v-slot:operateButton>
							<span
								v-if="
									allowAudit &&
										proxyRebateDetail[0] &&
										proxyRebateDetail[0].orderStatus === 0
								"
							>
								<el-button
									type="primary"
									size="small"
									:disabled="loading"
									@click="openCommissionAddSub()"
								>
									{{
										$t('funds.fund_audit.commission_addSub')
									}}
								</el-button>
								<el-button
									type="danger"
									size="small"
									:disabled="loading"
									@click="openCommissionCancle()"
								>
									{{
										$t('funds.fund_audit.commission_cancle')
									}}
								</el-button>
							</span>
						</template>
					</ProxyCommission>
				</div>
				<div v-else class="block rebate-details pl0 pr0">
					<CommissionBouns
						:selectedData="selectedData"
						:row="detailData"
					/>
				</div>
			</div>
		</div>
		<!-- 审核弹窗 -->
		<el-dialog
			:title="$t('funds.fund_audit.audit_dialog_title')"
			center
			:visible.sync="auditDialog.visible"
			width="630px"
			class="audit-dialog"
			@close="closeAuditDialog"
		>
			<el-form
				ref="reviewForm"
				:model="auditDialog"
				:rules="formRules"
				label-width="120px"
			>
				<el-form-item label="备注信息" prop="remark">
					<el-input
						v-model="auditDialog.remark"
						clearable
						type="textarea"
						:maxlength="500"
						show-word-limit
						:autosize="{ minRows: 4, maxRows: 4 }"
						style="width: 380px"
						:placeholder="$t('common.please_enter')"
						v-input="{ name: 'noEmpty' }"
					></el-input>
				</el-form-item>
			</el-form>
			<div slot="footer" class="dialog-footer">
				<el-button
					:disabled="auditDialog.loading"
					@click="auditDialog.visible = false"
				>
					{{ $t('common.cancel') }}
				</el-button>
				<el-button
					type="primary"
					:disabled="auditDialog.loading"
					:loading="auditDialog.loading"
					@click="handleAudit()"
				>
					<span>{{ $t('common.sure') }}</span>
				</el-button>
			</div>
		</el-dialog>
		<!-- 返佣加减 -->
		<el-dialog
			:visible.sync="CommissionAddSubVisible"
			:destroy-on-close="true"
			width="750px"
			:title="$t('funds.fund_audit.commission_addSub')"
			class="venueFee-dialog"
			@close="closeCommissionAddSub"
		>
			<div
				class="form-ddog"
				v-loading="CommissionAddSubLoading"
				element-loading-spinner="el-icon-loading"
			>
				<el-form
					ref="commissionAddForm"
					style="width: 500px"
					:model="CommissionAddSubForm"
					label-width="130px"
					:rules="formRules1"
					@submit.native.prevent
				>
					<el-form-item
						:label="`${$t('funds.fund_audit.adjust_type')}:`"
						prop="commissionStatus"
					>
						<el-radio-group
							v-model="CommissionAddSubForm.commissionStatus"
						>
							<el-radio :label="1" @change="changeAjustType">
								{{ $t('funds.fund_audit.add_commission') }}
							</el-radio>
							<el-radio :label="2" @change="changeAjustType">
								{{ $t('funds.fund_audit.sub_commission') }}
							</el-radio>
						</el-radio-group>
					</el-form-item>
					<el-form-item
						:label="`${$t('funds.fund_audit.adjust_amount')}:`"
						prop="adjustAmount"
					>
						<el-input
							v-model="CommissionAddSubForm.adjustAmount"
							clearable
							size="min"
							:maxlength="10"
							style="width: 200px"
							:placeholder="$t('common.please_enter')"
							v-input="{ name: 'float', num: '2' }"
							@input="checkAjustAmount"
						></el-input>
					</el-form-item>
					<el-form-item
						:label="
							`${$t(
								'funds.fund_audit.adjust_commission_amount_money'
							)}:`
						"
						class="is-required"
					>
						{{
							handleNumber(
								undefined,
								CommissionAddSubForm.teamCommissionAdjustAmount
							)
						}}
					</el-form-item>
					<el-form-item :label="$t('common.remark')" prop="remark">
						<el-input
							v-model="CommissionAddSubForm.remark"
							clearable
							type="textarea"
							:maxlength="500"
							show-word-limit
							:autosize="{ minRows: 4, maxRows: 4 }"
							style="width: 350px"
							v-input="{ name: 'noEmpty' }"
							:placeholder="
								$t('funds.capital_adjustment.form_rules_tip25')
							"
						></el-input>
					</el-form-item>
				</el-form>
			</div>
			<div slot="footer" class="dialog-footer center-footer">
				<el-button @click="closeCommissionAddSub">
					{{ $t('common.cancel') }}
				</el-button>
				<el-button
					type="primary"
					:disabled="CommissionAddSubLoading"
					:loading="CommissionAddSubLoading"
					@click="submitCommission"
				>
					{{ $t('common.sure') }}
				</el-button>
			</div>
		</el-dialog>

		<!-- 返佣取消 -->
		<el-dialog
			:visible.sync="CommissionCancelVisible"
			:destroy-on-close="true"
			width="750px"
			:title="$t('funds.fund_audit.commission_cancle')"
			class="venueFee-dialog"
			@close="closeCommissionCancle"
		>
			<div class="form-ddog">
				<el-form
					ref="commissionForm"
					style="width: 500px"
					:model="commissionForm"
					label-width="120px"
					:rules="formRules"
				>
					<el-form-item
						:label="`${$t('funds.proxy_name')}:`"
						class="is-required"
					>
						{{ detailProxyName || '-' }}
					</el-form-item>
					<el-form-item :label="$t('common.remark')" prop="remark">
						<el-input
							v-model="commissionForm.remark"
							clearable
							type="textarea"
							:maxlength="500"
							show-word-limit
							:autosize="{ minRows: 4, maxRows: 4 }"
							style="width: 350px"
							v-input="{ name: 'noEmpty' }"
							:placeholder="
								$t('funds.capital_adjustment.form_rules_tip25')
							"
						></el-input>
					</el-form-item>
				</el-form>
			</div>
			<div slot="footer" class="dialog-footer center-footer">
				<el-button @click="closeCommissionCancle">
					{{ $t('common.cancel') }}
				</el-button>
				<el-button
					type="primary"
					:disabled="CommissionCancelLoading"
					:loading="CommissionCancelLoading"
					@click="submitCommissionCancle"
				>
					{{ $t('common.sure') }}
				</el-button>
			</div>
		</el-dialog>
	</div>
</template>

<script>
import list from '@/mixins/list'
import dayjs from 'dayjs'
import CommonProxyTree from '@/components/CommonProxyTree/index'
import CommissionBouns from '@/components/Funds/CommissionBouns'
import ProxyCommission from '@/components/Funds/ProxyCommission'
export default {
	components: {
		CommonProxyTree,
		CommissionBouns,
		ProxyCommission
	},
	mixins: [list],
	props: {
		allowAudit: {
			type: Boolean,
			required: true
		},
		activeName: {
			type: String,
			default: ''
		},
		detailData: {
			type: Object,
			default: () => {}
		}
	},
	data() {
		return {
			tableLoading: false,
			selectedData: {
				type: 1,
				userName: ''
			},
			receiveRebateDate: '',
			treeProxyId: undefined,
			detailProxyName: undefined,
			tabloading: false,
			tabTableData: [],
			// 本期返点明细
			proxyRebateDetail: [],
			// 代理信息
			proxyAccountInfo: {},
			tableCommissionDataTop: [],
			tableCommissionDataBottom: [],

			CommissionAddSubLoading: false,
			CommissionAddSubVisible: false,
			CommissionCancelLoading: false,
			CommissionCancelVisible: false,
			detailCommissionAmount: 0,
			detailCommissionAdjustAmount: 0,
			CommissionAddSubForm: {
				commissionStatus: '',
				adjustAmount: '',
				teamCommissionAdjustAmount: '',
				remark: ''
			},
			commissionForm: {
				proxyName: '',
				remark: ''
			},
			queryData: {},
			proxyRebateAuditInfo: [],
			// 审核弹窗
			auditDialog: {
				loading: false,
				visible: false,
				result: undefined,
				remark: undefined
			},
			loading: false,
			// 当前代理所对应的记录id
			commissionProxyRecordId: undefined
		}
	},

	computed: {
		name() {
			return localStorage.getItem('username') || ''
		},
		formRules1() {
			return {
				commissionStatus: [
					{
						required: true,
						message: this.$t('funds.fund_audit.select_type'),
						trigger: ['blur', 'change']
					}
				],
				adjustAmount: [
					{
						required: true,
						message: this.$t(
							'funds.capital_adjustment.form_rules_tip8'
						),
						trigger: ['blur', 'change']
					}
				],
				teamCommissionAdjustAmount: [
					{
						required: true,
						message: this.$t('funds.fund_audit.input_money'),
						trigger: ['blur', 'change']
					}
				],
				remark: [
					{
						required: true,
						message: this.$t(
							'funds.thirdPeymentChannelConfig.form_rules_tip2'
						),
						trigger: 'blur'
					},
					{
						min: 2,
						max: 500,
						message: this.$t(
							'funds.thirdPeymentChannelConfig.form_rules_tip2'
						),
						trigger: 'blur'
					}
				]
			}
		},
		formRules() {
			return {
				remark: [
					{
						required: true,
						message: this.$t(
							'funds.thirdPeymentChannelConfig.form_rules_tip2'
						),
						trigger: 'blur'
					},
					{
						min: 2,
						max: 500,
						message: this.$t(
							'funds.thirdPeymentChannelConfig.form_rules_tip2'
						),
						trigger: 'blur'
					}
				]
			}
		},
		proxyCreatedAtEnd() {
			return dayjs(String(this.detailData?.cycleEndDate)).format(
				'YYYY-MM-DD 23:59:59'
			)
		}
	},
	watch: {
		selectedData: {
			handler(next) {
				if (next.type === 1 && next.id) {
					this.treeProxyId = next.id
					this.getProxyAuditDetail()
				}
			},
			immediate: true
		}
	},
	mounted() {},
	methods: {
		// 一审二审弹窗
		openAuditDialog(status) {
			this.auditDialog.result = status
			this.auditDialog.visible = true
		},
		// 关闭返佣审核弹窗
		closeAuditDialog() {
			this.$refs.reviewForm.resetFields()
		},
		// 获取返佣审核详情
		async getProxyAuditDetail() {
			this.loading = true
			this.proxyAccountInfo = {}
			this.proxyRebateDetail = []
			this.tableCommissionDataTop = []
			this.tableCommissionDataBottom = []
			this.proxyRebateAuditInfo = []
			this.detailCommissionAmount = 0
			this.detailCommissionAdjustAmount = 0
			const params = {
				proxyId: this.detailData?.proxyId,
				cycleStartDate: this.detailData?.cycleStartDate,
				cycleEndDate: this.detailData?.cycleEndDate
			}
			if (this.treeProxyId) {
				params.proxyId = this.treeProxyId
			}
			await this.$api
				.getProxySettlementCommissionDetail(params)
				.then((res) => {
					// 代理账号信息
					this.proxyAccountInfo = res?.data?.proxyResp || {}
					this.detailProxyName = this.proxyAccountInfo?.userName
					// 应收返点统计
					if (res?.data?.settlementCommissionProxyRecordRspDTO) {
						this.proxyRebateDetail = [
							res?.data?.settlementCommissionProxyRecordRspDTO
						]
						// 团队返佣
						this.detailCommissionAmount = this.proxyRebateDetail[0].commissionAmount
						// 返佣调整
						this.detailCommissionAdjustAmount = this.proxyRebateDetail[0].commissionAdjustAmount

						this.commissionProxyRecordId = this.proxyRebateDetail[0].id

						// 获取审核信息
						if (this.proxyRebateDetail[0].audit1Operator) {
							this.proxyRebateAuditInfo.push({
								lockOperator: this.proxyRebateDetail[0]
									.audit1Operator,
								auditTime: this.proxyRebateDetail[0].audit1Time,
								auditDesc: this.proxyRebateDetail[0].audit1Desc
							})
						}
						if (this.proxyRebateDetail[0].audit2Operator) {
							this.proxyRebateAuditInfo.push({
								lockOperator: this.proxyRebateDetail[0]
									.audit2Operator,
								auditTime: this.proxyRebateDetail[0].audit2Time,
								auditDesc: this.proxyRebateDetail[0].audit2Desc
							})
						}
					}
					// 团队返佣明细
					// settlementCode: 1：德州-俱乐部 2：德州-保险 3：其他
					const commissionData =
						res?.data?.dwmCommissionDetailProxyDDTOS || []
					commissionData.forEach((item) => {
						if (item.settlementCode === '1') {
							this.tableCommissionDataTop.push(item)
						} else {
							this.tableCommissionDataBottom.push(item)
						}
					})
					this.loading = false
				})
				.catch(() => {
					this.loading = false
				})
		},
		// 提交返佣审核
		handleAudit() {
			this.$refs.reviewForm.validate((valid) => {
				if (valid) {
					this.auditDialog.loading = true
					const params = {
						ids: [this.detailData.id],
						remark: this.auditDialog.remark,
						auditStatus: this.auditDialog.result
					}
					this.$api
						.proxyCommissionAuditRecord(params)
						.then((res) => {
							this.$message({
								type: 'success',
								message: this.$t('common.action_success')
							})
							this.visible = false
							this.auditDialog.loading = false
							this.$emit('goBack', true)
						})
						.catch(() => {
							this.auditDialog.loading = false
						})
				}
			})
		},
		// 选择调整类型
		changeAjustType() {
			if (!this.CommissionAddSubForm.commissionStatus) {
				return this.$message({
					type: 'warning',
					message: this.$t('funds.fund_audit.form_rules_tip5')
				})
			}
			this.checkAjustAmount()
		},
		// 打开返佣加减弹窗
		async openCommissionAddSub() {
			this.CommissionAddSubVisible = true
			// 获取首次加载时的默认数据
			// 调整后返佣金额 = 团队返佣 + 返佣调整
			this.CommissionAddSubForm.teamCommissionAdjustAmount =
				parseFloat(this.detailCommissionAmount) +
				parseFloat(this.detailCommissionAdjustAmount)

			if (this.detailCommissionAdjustAmount >= 0) {
				this.CommissionAddSubForm.commissionStatus = 1
			}
			if (this.detailCommissionAdjustAmount < 0) {
				this.CommissionAddSubForm.commissionStatus = 2
			}
			this.CommissionAddSubForm.adjustAmount = Math.abs(
				this.detailCommissionAdjustAmount
			)
			// 获取上次提交的加减额数据
			const params = {
				operationType: [1, 2],
				proxyId: this.selectedData.id,
				settlementCommissionProxyRecordId: this.commissionProxyRecordId
			}
			this.CommissionAddSubLoading = true
			await this.$api
				.getProxyCommissionAdjustAmount(params)
				.then((res) => {
					this.CommissionAddSubForm.remark = res?.data?.remark
				})
				.catch(() => {})
				.finally(() => {
					this.CommissionAddSubLoading = false
				})
			// this.checkAjustAmount()
		},
		// 返佣加减额监听input值改变 返佣加减额变化
		checkAjustAmount() {
			// 非空校验
			if (
				this.CommissionAddSubForm.adjustAmount === '' ||
				this.CommissionAddSubForm.adjustAmount === undefined
			) {
				return true
			}
			// 数字校验
			const val = Number(this.CommissionAddSubForm.adjustAmount)
			if (isNaN(val)) {
				this.CommissionAddSubForm.adjustAmount = ''
				return true
			}
			// 数字规则校验
			const pattern = /^\d+(\.\d{1,2})?$/
			if (!pattern.test(val)) {
				this.CommissionAddSubForm.adjustAmount = Number(val.toFixed(2))
			}
			// 返佣增加
			const status = Number(this.CommissionAddSubForm.commissionStatus)
			if (status === 1) {
				this.CommissionAddSubForm.teamCommissionAdjustAmount =
					parseFloat(this.detailCommissionAmount) +
					parseFloat(this.CommissionAddSubForm.adjustAmount)
			}
			// 返佣减少
			if (status === 2) {
				this.CommissionAddSubForm.teamCommissionAdjustAmount =
					parseFloat(this.detailCommissionAmount) -
					parseFloat(this.CommissionAddSubForm.adjustAmount)
			}
			// 调整后返佣金额判断
			if (this.CommissionAddSubForm.teamCommissionAdjustAmount < 0) {
				this.CommissionAddSubForm.adjustAmount = this.detailCommissionAmount
				this.CommissionAddSubForm.teamCommissionAdjustAmount = 0
				this.$message.closeAll()
				this.$message({
					type: 'warning',
					message: '调整后返佣金额不能小于0'
				})
				return true
			}
			return false
		},
		// 提交返佣加减额
		async submitCommission() {
			this.$refs.commissionAddForm.validate((valid) => {
				if (this.checkAjustAmount()) {
					return false
				}
				if (valid) {
					const params = {
						proxyId: this.selectedData.id,
						adjustType: this.CommissionAddSubForm.commissionStatus,
						adjustAmount: Number(
							this.CommissionAddSubForm.adjustAmount
						),
						auditDesc: this.CommissionAddSubForm.remark,
						cycleStartDate: this.detailData.cycleStartDate,
						cycleEndDate: this.detailData.cycleEndDate
					}
					this.CommissionAddSubLoading = true
					this.$api
						.setProxyCommissionAdjustAmount(params)
						.then((res) => {
							this.$message({
								message: this.$t('common.action_success'),
								type: 'success'
							})
							this.CommissionAddSubLoading = false
							this.CommissionAddSubVisible = false
							this.getProxyAuditDetail()
						})
						.catch(() => {
							this.CommissionAddSubLoading = false
						})
				}
			})
		},
		// 返佣加减关闭
		closeCommissionAddSub() {
			this.CommissionAddSubVisible = false
			this.CommissionAddSubForm.commissionStatus = undefined
			this.CommissionAddSubForm.remark = undefined
		},
		// 取消佣金弹窗关闭
		closeCommissionCancle() {
			this.CommissionCancelVisible = false
			this.$refs.commissionForm.resetFields()
		},
		// 返佣取消弹窗打开
		openCommissionCancle() {
			this.CommissionCancelVisible = true
		},
		// 提交返佣取消
		submitCommissionCancle() {
			this.$refs.commissionForm.validate((valid) => {
				if (valid) {
					const params = {
						// id: this.detailData.id,
						// adjustType: 1,
						proxyId: this.selectedData.id,
						auditDesc: this.commissionForm.remark,
						cycleStartDate: this.detailData.cycleStartDate,
						cycleEndDate: this.detailData.cycleEndDate
					}
					this.CommissionCancelLoading = true
					this.$api
						.cancelProxySettlementCommission(params)
						.then(() => {
							this.$message.success(
								this.$t('common.action_success')
							)
							this.CommissionCancelVisible = false
							this.CommissionCancelLoading = false
							this.commissionForm.remark = undefined
							this.getProxyAuditDetail()
						})
						.catch(() => {
							this.CommissionCancelLoading = false
						})
				}
			})
		},
		// 返回审核列表
		goBack() {
			this.$emit('goBack')
		}
	}
}
</script>

<style lang="scss" scoped>
.center-footer,
.form-ddog {
	display: flex;
	align-content: center;
	justify-content: center;
}
.tree-box {
	width: 320px;
	flex-shrink: 0;
	height: auto;
	overflow: auto;
	::v-deep .el-card__body {
		padding-left: 0px;
		width: 100%;
	}
}
::v-deep .el-tabs__item {
	font-size: 16px;
	font-weight: bold;
}
.treeRight {
	width: calc(100% - 245px);
	display: flex;
	-o-display: flex;
	-ms-display: flex;
	-webkit-display: flex;
	-moz-display: flex;
	flex-direction: column;
	-o-flex-direction: column;
	-ms-flex-direction: column;
	-webkit-flex-direction: column;
	-moz-flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
}
.txtfeed {
	width: 160px;
	table-layout: fixed;
	word-break: break-all;
	overflow: hidden;
}
.disColor {
	padding-left: 9px;
	color: rgb(75, 88, 211);
}
.contentBox {
	font-size: 16px;
	padding-block: 9px;
}
.water-dialog,
.venueFee-dialog,
.rules-dialog,
.level-dialog,
.cancel-dialog {
	::v-deep .el-dialog__header {
		text-align: left;
		color: #909399;
		font-weight: 700;
		border-bottom: 1px solid #00000015;
	}
}

.active-dialog {
	::v-deep .el-dialog__header {
		padding: 10px 20px 10px;
	}
	::v-deep .el-dialog__body {
		padding: 20px 20px;
	}
	.tabs-wrapper {
		display: flex;
		.tab {
			width: 120px;
			height: 40px;
			line-height: 40px;
			text-align: center;
			border: 1px solid rgba(0, 0, 0, 0.15);
			font-size: 14px;
			font-weight: 600;
			color: #000000a3;
			cursor: pointer;
			margin-right: 20px;
		}
	}
	.active {
		background: #00bfbf;
	}
	.type-name {
		padding: 0 0 20px;
		font-weight: 600;
		.num {
			color: blue;
		}
	}
}

.audit-wrapper {
	color: #666666;
	margin: 24px 16px 20px 16px;
	.head {
		height: 70px;
		line-height: 70px;
		width: 100%;
		background: #000;
		border-radius: 2px;
		padding: 0 30px;
		.title {
			font-weight: 600;
			color: rgb(192, 190, 190);
		}
		.right-btn {
			float: right;
		}
	}
	.audit-content {
		.block {
			padding: 30px 30px 0px 30px;
			margin-right: 15px;
			.name {
				font-weight: 600;
			}
			.block-content {
				position: relative;
				width: 100%;
				margin-top: 15px;
			}
		}
		.rebate-details {
			padding-bottom: 20px;
			.details-page {
				margin-top: 10px;
				position: absolute;
				right: 0;
			}
		}
		.review-info {
			display: flex;
			margin-top: 15px;
			flex-direction: column;
			border-left: 1px solid #e0e0e0;
			border-top: 1px solid #e0e0e0;
			.row {
				display: flex;
				.gird {
					min-height: 45px;
					font-size: 14px;
					text-align: center;
					flex: 1;
					border-right: 1px solid #e0e0e0;
					border-bottom: 1px solid #e0e0e0;
					word-break: break-all;
					display: flex;
					align-items: center;
					justify-content: center;
					padding: 2px;
				}
			}
			.title {
				background: #efefef;
			}
			.end-row {
				width: 50%;
			}
		}
	}
	.active-dialog {
		::v-deep .el-dialog__header {
			padding: 10px 20px 10px;
			border-bottom: 1px solid #00000015;
		}
		.tabs-wrapper {
			display: flex;
			.tab {
				width: 120px;
				height: 40px;
				line-height: 40px;
				text-align: center;
				border: 1px solid rgba(0, 0, 0, 0.15);
				font-size: 14px;
				font-weight: 600;
				color: #000000a3;
				cursor: pointer;
				margin-right: 20px;
				background: #e7e6e6;
			}
		}
		.active {
			background: #00bfbf !important;
		}
		.disabled {
			pointer-events: none;
		}
		.type-name {
			padding: 0 0 20px;
			font-weight: 600;
			.num {
				color: blue;
			}
		}
	}
}
::v-deep .el-table {
	.high-light {
		color: #0dc5e3;
	}
}
::v-deep .audit-dialog .el-form-item__error {
	left: 0;
}

.vi_VN,
.th_TH,
.en_US {
	.audit-time {
		font-size: 12px;
	}
}
</style>
